//
//  JPDetailedHeaderView.m
//  用户信息设置
//
//  Created by 周述坚 on 16/11/14.
//  Copyright © 2016年 周述坚. All rights reserved.
//

#import "JPDetailedHeaderView.h"

@interface JPDetailedHeaderView()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *professionLabel;
@property (weak, nonatomic) IBOutlet UILabel *hospitalLabel;
@property (weak, nonatomic) IBOutlet UILabel *operationLabel;
@property (weak, nonatomic) IBOutlet UILabel *flowerLabel;
@property (weak, nonatomic) IBOutlet UILabel *bannerLabel;

@end

@implementation JPDetailedHeaderView

- (IBAction)oneAction:(id)sender {
    
    self.leftCompletion();
}
- (IBAction)towAction:(id)sender {
    self.rightCompletion();
}

- (void)setDoctorDetail:(JPDoctorModel *)doctorDetail{
    
    _doctorDetail = doctorDetail;
    self.nameLabel.text = doctorDetail.doctor_name;
    self.professionLabel.text = doctorDetail.doctor_title_name;
    self.hospitalLabel.text = doctorDetail.hospital_name;
    self.flowerLabel.text = [NSString stringWithFormat:@"鲜花数%zd",doctorDetail.flower];
    self.bannerLabel.text = [NSString stringWithFormat:@"锦旗数%zd",doctorDetail.banner];
    self.operationLabel.text = [NSString stringWithFormat:@"预约数%zd",doctorDetail.operation_count];

}

@end
